import Vue from 'vue'

import CORE from '@/CORE'

import Login from '@login/Login'
import LoginAf from '@login/LoginAf'
import LoginKj from '@login/LoginKj'
import LoginJnga from '@login/LoginJnga'

const render = (h) => {
  switch (process.env.VUE_APP_MAIN) {
    case 'main_af': return h(LoginAf)
    case 'main_kj': return h(LoginKj)
    case 'main_jnga': return h(LoginJnga)
    default: return h(Login)
  }
}

// 生产环境关闭提示
Vue.config.productionTip = false

// 所有组件添加 this.CORE
Vue.prototype.CORE = CORE

// 挂载组件
new Vue({ render }).$mount('#app')
